package org.example.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.example.entity.BaseEntity;


/**
 * 资源实体类
 */
@Data
@TableName("app_media")
public class MediaEntity extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long collectionId;//合集ID
    private String mediaName;//名字
    private Long uploaderId;//上传者ID
    private String mediaPath;//资源路径

    @TableField(exist = false)
    private String coverPath;//封面路径
    @TableField(exist = false)
    private String mediaTitle;//标题
    @TableField(exist = false)
    private String mediaAuthor;//作者
    @TableField(exist = false)
    private String mediaInfo;//资源介绍
    @TableField(exist = false)
    private Integer mediaType;//资源类型
    @TableField(exist = false)
    private String nickname; //作者昵称
    @TableField(exist = false)
    private String avatar; //作者头像
    @TableField(exist = false)
    private String desc; //倒序
}
